import { UPDATEPAGEMESSAGELIST } from '../types/pagemessagelist'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  breaklocation: false,
  havenoshopbyshare: false
}

export default handleActions({
  [UPDATEPAGEMESSAGELIST] (state, action) {
    return {
      ...state,
      ...action.payload
    }
  }
}, Schema)
